# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lddtree
pkgver=1.26
pkgrel=2
pkgdesc="List dynamic dependencies as a tree"
url="https://github.com/ncopa/lddtree"
arch="noarch"
license="GPL-2.0"
depends="scanelf"
depends_dev=""
replaces="pax-utils"
makedepends="$depends_dev"
install=""
subpackages=""
options="!check"
source="lddtree-$pkgver.tar.gz::https://github.com/ncopa/lddtree/archive/v$pkgver.tar.gz
	0001-use-musl-ldso-conf.patch
	"

build() {
	return 0
}

package() {
	cd "$builddir"
	install -Dm755 lddtree.sh "$pkgdir"/usr/bin/lddtree
}

sha512sums="9c244cf47627e6cfb396f4187e7c35b438bcb8e3978e43a91ad5a5d034233eaaffd1319e98b6a26b8bbcb570ede3eeb809a14720b50771587a96dde5f6516340  lddtree-1.26.tar.gz
de2e9321a955697860a74a6bd383e7c77a4a10733247b2cb0c5ccbb4586c24d60cd7ee3d30cc4f33620cb971247d84b9550073ff0f7a11ef7a46af75c5fcf920  0001-use-musl-ldso-conf.patch"
